package house.jc.engine.execute.eventbus.sdk.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.core.annotation.AliasFor;

import com.gitee.hermer.engine.jars.core.domain.EngineConstant;

@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@com.gitee.hermer.engine.jars.core.eventbus.annotate.OnEvent(eventName="",eventType=com.gitee.hermer.engine.jars.core.eventbus.EventType.QUEUE)
public @interface OnEvent {

	@AliasFor(annotation=com.gitee.hermer.engine.jars.core.eventbus.annotate.OnEvent.class,value=EngineConstant.ANNOTATE_FIELD_NAME_EVENT_NAME)
	String eventName() default "";
	@AliasFor(annotation=com.gitee.hermer.engine.jars.core.eventbus.annotate.OnEvent.class,value=EngineConstant.ANNOTATE_FIELD_NAME_EVENT_TYPE)
	String type() default house.jc.event.center.core.domain.EventType.QUEUE;

}
